home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / diskBoot.OpenProm / sun4c.md / RCS / devFsOpTable.c,v < prev    next >
Encoding:
Text File  |  1991-09-01  |  2.8 KB  |  105 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     91.09.01.16.49.32;  author dlong;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @sun4c version
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @/* 
  27.  * devFsOpTable.c --
  28.  *
  29.  *    The operation tables for the file system devices.  
  30.  *
  31.  * Copyright 1987, 1988 Regents of the University of California
  32.  * Permission to use, copy, modify, and distribute this
  33.  * software and its documentation for any purpose and without
  34.  * fee is hereby granted, provided that the above copyright
  35.  * notice appear in all copies.  The University of California
  36.  * makes no representations about the suitability of this
  37.  * software for any purpose.  It is provided "as is" without
  38.  * express or implied warranty.
  39.  */
  40.  
  41. #ifdef notdef
  42. static char rcsid[] = "$Header: /sprite/src/boot/sunprom/sun4.md/RCS/devFsOpTable.c,v 1.1 90/09/17 11:24:28 rab Exp Locker: rab $ SPRITE (Berkeley)";
  43. #endif not lint
  44.  
  45.  
  46. #include "sprite.h"
  47. #include "dev.h"
  48. #include "devFsOpTable.h"
  49.  
  50. extern ReturnStatus SunPromDevOpen _ARGS_ ((Fs_Device *devicePtr, int flags,
  51.                             Fs_NotifyToken notifyToken, int *flagsPtr));
  52. extern ReturnStatus SunPromDevRead _ARGS_ ((Fs_Device *devicePtr,
  53.                                 Fs_IOParam *readPtr, Fs_IOReply *replyPtr));
  54. #if 0
  55. static ReturnStatus NullWriteProc _ARGS_ ((Fs_Device *devicePtr,
  56.                                 Fs_IOParam *writePtr, Fs_IOReply *replyPtr));
  57. static ReturnStatus NullIoctlProc _ARGS_ ((Fs_Device *devicePtr,
  58.                                 Fs_IOCParam *ioctlPtr, Fs_IOReply *replyPtr));
  59. static ReturnStatus NullCloseProc _ARGS_ ((Fs_Device *devicePtr, int flags,
  60.                             int numUsers, int numWriters));
  61. static ReturnStatus NullSelectProc _ARGS_ ((Fs_Device *devicePtr, int *readPtr,
  62.                                 int *writePtr, int *exceptPtr));
  63. static DevBlockDeviceHandle NullBlockDevAttachProc _ARGS_ ((Fs_Device *ptr)));
  64. static ReturnStatus NullReopenProc _ARGS_ ((Fs_Device *devicePtr, int numUsers,
  65.                                 int numWriters,
  66.                     Fs_NotifyToken notifyToken,
  67.                     int *flagsPtr));
  68. static ReturnStatus NullMmapProc _ARGS_ ((Fs_Device *devicePtr,
  69.                                 Address startAddr, int length,
  70.                 int offset, Address *newAddrPtr));
  71. #endif
  72.  
  73.  
  74. /*
  75.  * Device type specific routine table:
  76.  *    This is for the file-like operations as they apply to devices.
  77.  *    DeviceOpen
  78.  *    DeviceRead
  79.  *    DeviceWrite
  80.  *    DeviceIOControl
  81.  *    DeviceClose
  82.  *    DeviceSelect
  83.  *    BlockDeviceAttach
  84.  */
  85.  
  86.  
  87. DevFsTypeOps devFsOpTable[] = {
  88.     /*
  89.      * Simple interface to the routines in the Sun PROM.
  90.      */
  91.     {0, SunPromDevOpen, SunPromDevRead, 0, 0, 0, 0, 0, 0, 0 }
  92. };
  93.  
  94. int devNumDevices = sizeof(devFsOpTable) / sizeof(DevFsTypeOps);
  95.  
  96. #if 0
  97. static ReturnStatus
  98. NullProc()
  99. {
  100.     return(SUCCESS);
  101. }
  102. #endif
  103.  
  104. @
  105.